<template>
  <div id="grade">
    <app-scroll class="content">
      <div class="wrap">
        <div class="topbg">
          <h3><span @click="toback"> ＜ </span> 积分商城</h3>
          <div class="banner">
            <h6>你有超级活跃的勋章</h6>
            <img
              src="img/medal.png"
              alt=""
            />
          </div>
        </div>
        <div class="mygrade">
          <div class="number"><span>109</span></div>
          <div class="rank">
            <h2>目前的分享的分</h2>
            <h3>查看完整的分数和提高你的排名</h3>
          </div>
        </div>
        <div class="task">
          <div class="share"><span class="iconfont iconfenxiang"></span></div>
          <div class="rank">
            <h2>任务: 分享1个好友</h2>
            
          </div>
          <div class="pic">
            <span class="iconfont iconyonghu "></span>
          </div>
        </div>
        <div class="task">
          <div class="share"><span class="iconfont iconfenxiang"></span></div>
          <div class="rank">
            <h2>任务: 分享5个好友</h2>
            
          </div>
          <div class="pic">
            <span class="iconfont iconyonghu "></span>
          </div>
        </div>
        <div class="task">
          <div class="share"><span class="iconfont iconfenxiang"></span></div>
          <div class="rank">
            <h2>任务: 分享10个好友</h2>
            
          </div>
          <div class="pic">
            <span class="iconfont iconyonghu "></span>
          </div>
        </div>
      </div>
    </app-scroll>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      goods: {},
    };
  },
  methods: {
    async requestShopMsg() {
      const {
        data: { data },
      } = await axios.get("data/grade.json");
      // console.log(ms)
      this.goods = data;
    },
    toback(){
        this.$router.back();
    }
  },
  mounted() {
    this.requestShopMsg();
  },
};
</script>

<style lang="scss" scoped>
#grade {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
}
.content {
  height: 100%;
  width: 100%;
  background:rgba(247, 247, 248, 1)
}

.topbg {
  // height: 200px;
  width: 100%;
  
  h3 {
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
    background: rgba(48, 48, 48, 1);
    position: relative;
    span {
      position: absolute;
      left: 20px;
    }
  }
  .banner {
    width: 96%;
    margin: 0 auto;
    background: #fff;
    margin-top: 15px;
    justify-content: center;
    // margin-top: 10px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    padding: 20px;
    h6{
      text-align: center;
      font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
      font-weight: 700;
      font-style: normal;
      color: #2C2D6E;
      font-size: 16px;
      letter-spacing: 5px;
      line-height: 20px;
    }
    img {
      width: 279px;
      display: block;
      margin: 0 auto;
    }
  }
}
.mygrade{
    margin: 15px auto;
    width: 317px;
    height: 89px;
    background-color: rgba(255, 255, 255, 1);
    border: none;
    border-radius: 6px;
    display: flex;
    .number{
      align-items: center;
      height: 89px;
      width: 85px;
      display: flex;
      justify-content: center;
      span{
        height: 50px;
        width: 50px;
        display: block;
        line-height: 50px;
        text-align: center;
        color: #fff;
        font-weight: 700;
        font-size: 16px;
        background: rgb(108, 95, 224);
        border-radius: 50%;
      }
    }
    .rank{
      padding: 12px 20px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      h2{
        font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
        font-weight: 700;
        font-style: normal;
        color: #2C2D6E;
        font-size: 14px;
        line-height: 28px;
      }
      h3{
        font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
        font-weight: 700;
        font-style: normal;
        font-size: 13px;
        color: #999999;
        line-height: 28px;
      }
    }
}
.task{
    margin: 15px auto;
    width: 317px;
    height: 68px;
    background-color: rgba(255, 255, 255, 1);
    border: none;
    border-radius: 6px;
    display: flex; 
    justify-content: space-around;
    .share{
      align-items: center;
      // width: 85px;
      display: flex;
      justify-content: center;
      margin-top: 9px;
      border-radius: 50%;
      height: 50px;
      background: #FCEE21;
      .iconfont{
        font-size: 50px;
        // text-align: center;
        color: #aaa;
        
        // font-weight: 700;
      }
    }
    .rank{
      line-height: 68px;
      h2{
        font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
        font-weight: 700;
        font-style: normal;
        color: #2C2D6E;
        font-size: 14px;
        // line-height: 28px;
      }
    }
    .pic{
      line-height: 68px;
      .iconfont{
        font-size: 40px;
        color:#4FC3F7 ;
      }
    }
}
</style>